image: node:lts

stages:
  - test
  - deploy

test:
  stage: test
  script:
  - npm install --force
  - npm run build
  except:
    - master

pages:
  stage: deploy
  script:
  - npm install --force
  - npm run build
  - mv ./build ./public
  artifacts:
    paths:
    - public
  only:
    - master
